﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Prj3010p.aspx.cs" Inherits="Updms.Prj.Prj3010p" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Prj3010p] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Prj3010p" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_send" Text="전송" runat="server" CssClass="ibtn ibtn_send" OnClientClick="return chkMailSend()" OnClick="ibtn_send_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->			
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table class="table_detail">
				<tr>
					<td class="lbl" width="11%"><asp:Literal id="ltr_from" Text="송신자" runat="server" /></td>
					<td class="ctl" width="22%"><asp:TextBox ID="txt_from" runat="server" CssClass="ib_b req" Text="simyung@cnspartner.com" Width="97%"></asp:TextBox></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_to" Text="수신자" runat="server" /></td>
					<td class="ctl" width="22%"><asp:TextBox ID="txt_to" runat="server" CssClass="ib_b req" Text="simyung@cnspartner.com" Width="97%"></asp:TextBox></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_transfer_type" Text="전송방식" runat="server" /></td>
					<td class="ctl" width="22%"><asp:RadioButtonList ID="rbl_is_html" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="rbl_flow">
							<asp:ListItem Value="false" Selected="True">TEXT</asp:ListItem>
							<asp:ListItem Value="true">HTML</asp:ListItem>
						</asp:RadioButtonList></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_subject" Text="제목" runat="server" /></td>
					<td class="ctl" colspan="5"><asp:TextBox ID="txt_subject" runat="server" CssClass="ib_b req" Text="" Width="99.2%"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_body" Text="내용" runat="server" /></td>
					<td class="ctl" style="padding:1px;" colspan="5"><asp:TextBox ID="txt_body" runat="server" CssClass="tb_scroll req" Text="" TextMode="MultiLine" Rows="25" Height="400" Width="98.7%"></asp:TextBox></td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<!-- 리스트 시작 -->
			<div class="sub_title_icon"><asp:Literal id="ltr_stitle_other_prj_status" Text="타 프로젝트 현황" runat="server" /></div>
			<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" >
				<Columns>
					<asp:BoundField HeaderText="번호" >
						<ItemStyle HorizontalAlign="Center" Width="6%" />
					</asp:BoundField>
					<asp:BoundField DataField="Subject" HeaderText="프로젝트" HtmlEncode="False" >
						<ItemStyle HorizontalAlign="Left" Width="24%" />
					</asp:BoundField>
					<asp:BoundField DataField="Reg_Dt" HeaderText="등록일" HtmlEncode="False" >
						<ItemStyle HorizontalAlign="Center" Width="9%" />
					</asp:BoundField>
					<asp:BoundField DataField="Real_Complete_Dt" HeaderText="완료일" HtmlEncode="False" >
						<ItemStyle HorizontalAlign="Center" Width="9%" />
					</asp:BoundField>
					<asp:BoundField DataField="Pgm_Nm" HeaderText="프로그램" HtmlEncode="False" >
						<ItemStyle HorizontalAlign="Left" Width="18%" />
					</asp:BoundField>
					<asp:BoundField DataField="Title" HeaderText="제목" HtmlEncode="False" >
						<ItemStyle HorizontalAlign="Left" Width="34%" />
					</asp:BoundField>
				</Columns>
				<EmptyDataTemplate>
					<div id="no_data"></div>
				</EmptyDataTemplate>
			</asp:GridView>
			<!-- 리스트 끝 -->
			<!-- 리스트셋 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_pk" runat="server"></asp:label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//전송
	function chkMailSend() {
		if ($F("txt_from").blank()) {
			msgBox.alert(getMsg(MSG_ERR_019), setFocus, "txt_from");	//보내는사람을 입력해주세요
			return false;
		}
		if (!isEmail($F("txt_from"))) {
			msgBox.alert(getMsg(MSG_ERR_021), setFocus, "txt_from");	//잘못된 이메일 형식입니다
			return false;
		}
		if ($F("txt_to").blank()) {
			msgBox.alert(getMsg(MSG_ERR_020), setFocus, "txt_to");	//받는사람을 입력해주세요
			return false;
		}
		if (!isEmail($F("txt_to"))) {
			msgBox.alert(getMsg(MSG_ERR_021), setFocus, "txt_to");	//잘못된 이메일 형식입니다
			return false;
		}
		if ($F("txt_subject").blank()) {
			msgBox.alert(getMsg(MSG_ERR_016), setFocus, "txt_subject");	//제목을 입력해주세요
			return false;
		}
		if ($F("txt_body").blank()) {
			msgBox.alert(getMsg(MSG_ERR_018), setFocus, "txt_body");	//내용을 입력해주세요
			return false;
		}

		msgBox.confirm(getMsg(MSG_CFM_013), doSend);	//메일을 발송하시겠습니까?
		return false;
	}
</script>
</body>
</html>